package com.example.feign;

import com.example.entity.DepartmentsEntity;
import com.example.utils.ReturnT;
import io.swagger.v3.oas.annotations.Operation;
import org.springframework.cloud.openfeign.FeignClient;
import org.springframework.web.bind.annotation.GetMapping;
import org.springframework.web.bind.annotation.RequestParam;

import java.util.List;
import java.util.Map;

/**
 * @author 31515
 */
@FeignClient("HAND-DEP")
public interface DepFeignService {

    /**
     * 根据id进行查询
     * @param id
     * @return
     */
    @GetMapping("/dep/load")
    public Object load(@RequestParam("id") int id);

    /**
     * 通过部门code获取部门信息
     * @param departmentCode
     * @return
     */
    @GetMapping("/dep/selectByCode")
    public ReturnT<List<DepartmentsEntity>> selectByDepeartmentCode(@RequestParam("departmentCode") String departmentCode);
}
